<ion-view view-title="租赁" class="service">
	<ion-content>
		<!--描述：下拉刷新-->
		<div class="searchorder_all">
			<div id="lease-top1">
				<span class="secondhand_address_span">
					<span class="secondhand_address_span_line">
						<span class="secondhand_address_span_line_text">品类：</span>
						<div class="secondhand_address_span_line_select" ng-click="doSelectCat1()">{{input.cat1.name}}</div>
						<div class="secondhand_address_span_line_select" ng-click="doSelectCat2()">{{input.cat2.name}}</div>
						<div class="secondhand_address_span_line_select" ng-click="doSelectCat3()">{{input.cat3.name}}</div>
					</span>
					<span class="secondhand_address_span_line">
						<span class="secondhand_address_span_line_text">区域：</span>
						<div class="secondhand_address_span_line_select" ng-click="doSelectProvince()">{{input.province.name}}</div>
						<div class="secondhand_address_span_line_select" ng-click="doSelectCity()">{{input.city.name}}</div>
						<div class="secondhand_address_span_line_select" ng-click="doSelectDistrict()">{{input.district.name}}</div>
					</span>
				</span>
				<span class="searchorder_search_span">
					<i class="icon ion-search h4  searchorder_search_span_icon font-gray-my"></i>
					<input class="searchorder_search_span_input" placeholder="大家都在搜" type="text" ng-model="input.key" />
					<i class="icon ion-ios-close-outline font-large-my" ng-show="input.key.length>0" on-tap="clear_key()"></i>
					<span class="searchorder_search_span_button" on-tap="doSearch()">搜索</span>
				</span>
				<span class="secondhand_order_span">
					<span class="secondhand_order_span_text" on-tap="doSearch(1)" ng-class="{'assertive':orderby==1}">
						默认排序&nbsp;&nbsp;
					</span>
					<span class="secondhand_order_span_text">价格排序：</span>

					<span class="secondhand_order_span_text" on-tap="doSearch(4)" ng-class="{'assertive':orderby==4}">从高到低&nbsp;&nbsp</span>
					<!--<i class="icon ion-arrow-up-c h4  secondhand_order_span_icon" style="color:grey"></i>-->
					<span class="secondhand_order_span_text" on-tap="doSearch(5)" ng-class="{'assertive':orderby==5}">从低到高&nbsp;&nbsp</span>
					<!--<i class="icon ion-arrow-down-c h4  secondhand_order_span_icon" style="color:grey"></i>-->
				</span>

				<!--描述：列表-->
				<div class="font-large-my font-gray-my text-center padding" ng-if="datas.data.length==0||datas.data==null">
					<i class="icon ion-sad-outline font-1rem-my"></i>
					对不起，没有符合条件的数据.....
				</div>
				<div class=" text-center padding-0 font-small-my font-gray-my item-borderless" ng-if="datas.data.length>0">
					共有
					<span class="assertive">{{datas.page.count}}</span>件商品
				</div>
			</div>
			<ion-scroll direction="y" ng-style="lease_myObj">
				<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
				<div class="secondhand_product" ng-repeat="data in datas.data">
					<div style="width: 100%;height: 7rem;">
						<img src="{{data.image}}" ng-if="data.image" style="width: 100%;max-height: 7rem;" on-tap="onShow_detail(data.goods_id)"
						/>
						<img src="{{noImg}}" ng-if="data.image==''||data.image==null" style="width: 100%;max-height: 7rem;" on-tap="onShow_detail(data.goods_id)"
						/>
					</div>
					<p class="padding-left-5-my" style="height: 40px;">{{data.name|limitTo:20}}
						<span ng-if="data.name.length>20">....</span>
					</p>
					<p class="secondhand_product_price">
						{{data.price|currency:'¥'}}
						<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
						<span style="text-decoration: line-through;" class="font-gray-my font-small-my right-zhang">原价:{{data.mktprice|currency:'¥'}}</span>
					</p>
					</p>
					<p class="secondhand_product_phone">联系方式：{{data.phone}}</p>
					<li class="item padding-10">
						<button class="button assertive-border button-small font-gray-my" on-tap="onshow_first(data.store_id)">
							<i class="ion ion-home assertive"></i>{{data.store_name}}
						</button>
					</li>
				</div>
				<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
			</ion-scroll>
		</div>

		<!--描述：当用户到达页脚或页脚附近时-->
	</ion-content>
</ion-view>